package com.e3.basdoc.corp.client;

import java.util.ArrayList;
import java.util.List;

import com.e3.basdoc.corp.model.CorpModel;
import com.e3.template.tgf.TGFGridPanel;
import com.e3.template.tgf.TGFQueryDialog;
import com.e3.template.tgf.TGFRefDialog;
import com.e3.template.tgf.TGFTreePanelAsync;
import com.e3.web.core.client.GridListener;
import com.e3.web.core.client.QueryListener;
import com.e3.web.core.client.TreeListener;
import com.e3.web.core.model.SuperQC;
import com.e3.web.widget.client.BaseAction;
import com.e3.web.widget.client.MyButton;
import com.e3.web.widget.client.MyMenu;
import com.e3.web.widget.client.MyMenuItem;
import com.e3.web.widget.client.MyRefDialog;
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
import com.google.gwt.user.client.Element;

public class CorpRefDialog extends TGFRefDialog<CorpModel>{

	@Override
	protected String getRefDialogTitle() {
		return CorpMessages.INSTANCE.title_corp_refdialog();
	}

	@Override
	protected TGFGridPanel<CorpModel> createGridPanel() {
		return new CorpGridPanel();
	}

	@Override
	protected TGFTreePanelAsync<CorpModel> createTreePanel() {
		return new CorpTreePanel();
	}

	@Override
	protected TGFQueryDialog<CorpModel> createQueryDialog() {
		return new CorpQueryDialog();
	}

	@Override
	protected String getCurrentLocalName() {
		return CorpMessages.INSTANCE.local_name();
	}

}
